/*
 * @Author: your name
 * @Date: 2022-04-26 09:19:53
 * @LastEditTime: 2022-05-07 13:30:49
 * @LastEditors: 血雪球 wash0226@outlook.com
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 *
 */
import xjaxios from "@/api/axios";
// let organizationNo = sessionStorage.getItem('organizationNo');

export default {
  /**
  * @description: 信息 *代表必填
  */
  artificialPageList(params) {
    return xjaxios.post("/v3/trace/artificialProductionBaseInfo/queryPageList", {
      ...params
    });
  },
  // 产品信息单个查询
  artificialProductionBaseId(artificialProductionBaseInfoNo) {
    return xjaxios.get(`/v3/trace/artificialProductionBaseInfo/query?artificialProductionBaseInfoNo=${artificialProductionBaseInfoNo}`);
  },
  traceByCondition(params) {
    return xjaxios.post("/v3/trace/traceNo/queryByCondition", {
      ...params
    });
  },
  artificialProduction(params) {
    return xjaxios.get(`/v3/trace/artificialProductionBaseInfo/queryByNo?artificialProductionBaseInfoNo=${params}`);
  },
  // 添加产品信息
  artificialAdd(params) {
    return xjaxios.post("/v3/trace/artificialProductionBaseInfo/add", {
      ...params
    });
  },
  // 删除产品信息
  artificialDelList(params) {
    return xjaxios.post("/v3/trace/artificialProductionBaseInfo/delList", {
      ...params
    });
  },
  // 条件查询农事信息
  artificialFarmingQuery(params) {
    return xjaxios.post(`/v3/trace/artificialFarmingOperation/queryByCondition`, params);
  },
  // 条件查询农事信息
  artificialFarmingByCensus(params) {
    return xjaxios.post(`/v3/trace/artificialFarmingOperation/queryByCensus`, params);
  },
  // 添加农事信息
  artificialFarmingAdd(params) {
    return xjaxios.post("/v3/trace/artificialFarmingOperation/add", {
      ...params
    });
  },
  // 添加农事信息List
  artificialFarmingAddList(params) {
    return xjaxios.post("/v3/trace/artificialFarmingOperation/addList", {
      ...params
    });
  },
  // 分页查农资信息
  AgriculturalInputsPageList(params) {
    return xjaxios.post("/v3/trace/artificialAgriculturalInputs/queryPageList", {
      ...params
    });
  },
  // 条件查询农资信息
  AgriculturalInputsQuery(params) {
    return xjaxios.post(`/v3/trace/artificialAgriculturalInputs/queryByCondition`, params);
  },
  // 条件查询农资信息
  AgriculturalInputsByCensus(params) {
    return xjaxios.post(`/v3/trace/artificialAgriculturalInputs/queryByCensus`, params);
  },
  // 添加农资信息
  artificialAgriculturalAdd(params) {
    return xjaxios.post("/v3/trace/artificialAgriculturalInputs/add", {
      ...params
    });
  },
  // 添加农资信息List
  artificialAgriculturalAddList(params) {
    return xjaxios.post("/v3/trace/artificialAgriculturalInputs/addList", {
      ...params
    });
  },
  // 修改
  artificialEdit(params) {
    return xjaxios.post("/v3/trace/artificialProductionBaseInfo/edit", {
      ...params
    });
  }
  // 修改
  // artificialFarmingEdit(params) {
  //   return xjaxios.post("/v3/trace/artificialFarmingOperation/edit", {
  //     ...params
  //   });
  // },
  // // 修改
  // artificialFarmingEditList(params) {
  //   return xjaxios.post("/v3/trace/artificialFarmingOperation/editList", {
  //     ...params
  //   });
  // },
  // // 修改
  // artificialAgriculturalEdit(params) {
  //   return xjaxios.post("/v3/trace/artificialAgriculturalInputs/edit", {
  //     ...params
  //   });
  // },
  // // 修改
  // artificialAgriculturalEditList(params) {
  //   return xjaxios.post("/v3/trace/artificialAgriculturalInputs/editList", {
  //     ...params
  //   });
  // },
  // // 修改
  // artificialEdit(params) {
  //   return xjaxios.post("/v3/trace/artificialOrganization/edit", {
  //     ...params
  //   });
  // },
  // 删除
  // artificialDelList(params) {
  //   return xjaxios.post("/v3/trace/artificialOrganization/delList", {
  //     ...params
  //   });
  // }
}
